package cn.agilean.test.repo;

import cn.agilean.test.entity.Company;
import cn.agilean.test.entity.Relation;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

import java.util.List;

@Configuration
@ConfigurationProperties(prefix = "company")
public class CompanyRepo {
    private List<Company> companies;
    private List<Relation> relationShips;

    public List<Company> getCompanies() {
        return companies;
    }

    public List<Relation> getRelationShips() {
        return relationShips;
    }

    public void setCompanies(List<Company> companies) {
        this.companies = companies;
    }

    public void setRelationShips(List<Relation> relationShips) {
        this.relationShips = relationShips;
    }
}
